Skip to content

Delete demean.py & numba dep#21

Open
s3alfisc wants to merge 2 commits intomasterfrom
delete-demean
Open

Delete demean.py & numba dep#21
s3alfisc wants to merge 2 commits intomasterfrom
delete-demean

Conversation

@s3alfisc
Copy link
Copy Markdown
Member

Hi, deleting the demean.py and numba dependency that are relics from old days when regressing via pyfixest was supported.

@s3alfisc
Copy link
Copy Markdown
Member Author

s3alfisc commented Nov 20, 2025

Ah, this actually seems to still be used when two sided formulas are used :

 if self.fevars:
            # fe needs to contain of only integers for
            # the demean function to work
            fe = _convert_to_int(data[self.fevars])
            fe = fe.reshape(-1, 1) if fe.ndim == 1 else fe

            y, _ = demean(x=y, flist=fe, weights=n)
            X, _ = demean(x=X, flist=fe, weights=n)

Do you want to keep this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants